package org.jeecg.modules.charge.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.entity.charge.ChargeStandard;
import org.jeecg.enums.charge.ChargeResidentTypeEnum;

import java.util.List;
/**
 * @Description: 收费标准
 * @Author: jeecg-boot
 * @Date:   2019-07-31
 * @Version: V1.0
 */

public interface IChargeStandardService extends IService<ChargeStandard> {

    Integer getStandarTenant(String roomId,String feeCode,String tenantRoomId);

    Integer getCountStandardRoom(String roomId,String feeId);

    Integer insertList(List<ChargeStandard> standardList);

//    BaseRoom getByRoom(String roomId);

    ChargeStandard getByRoomIdStandar(String roomId,String feeCode);

    String queryProjectName(String projectId);

    String queryFloorId(String projectId, String trim);

    String queryRoomId(String floorId, String roomName);

    Integer existQueryStandard(String roomId,String feeItemId);

    List<ChargeStandard> findPage(Page<ChargeStandard> page, ChargeStandard chargeStandard);

    /**
     * 根据收费项查询收费标准
     * @param feeId  费用项id
     * @param roomId 房间id
     * @param residentType 业主类型(1:租户 2:业主)
     * @return
     */
    ChargeStandard getStandardByFeeId(String feeId,String roomId,ChargeResidentTypeEnum residentType);

    ChargeStandard getStandardByFeeIdAndRoomId(String itemId,String roomId);
}
